package com.ccn.crm.service.impl;

import com.ccn.crm.mapper.installManageDetailMapper;
import com.ccn.crm.model.installManageDetail;
import com.ccn.crm.service.IInstallDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InstallDetailServiceImpl implements IInstallDetail {
    @Autowired
    private installManageDetailMapper installManageDetail;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return installManageDetail.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(installManageDetail record) {
        return installManageDetail.insert(record);
    }

    @Override
    public installManageDetail selectByPrimaryKey(Integer id) {
        return installManageDetail.selectByPrimaryKey(id);
    }

    @Override
    public List<installManageDetail> selectAll() {
        return installManageDetail.selectAll();
    }

    @Override
    public List<com.ccn.crm.model.installManageDetail> selectByInstallId(Integer id) {
        return installManageDetail.selectByInstallId(id);
    }

    @Override
    public List<com.ccn.crm.model.installManageDetail> selectByParent(Integer id) {
        return installManageDetail.selectByParent(id);
    }

    @Override
    public int updateByPrimaryKey(installManageDetail record) {
        return installManageDetail.updateByPrimaryKey(record);
    }

    @Override
    public int updateInstallDetailCrmId(int id, String crmId) {
        return installManageDetail.updateInstallDetailCrmId(id,crmId);
    }
}
